import instance from '@/utils/request';

export function GetRecord(data) {
    return instance.request({
        url: "/api/Record/GetRecord",
        method: "post",
        data
    })
}

export function GetTotaocount() {
    return instance.request({
        url: "/api/Record/GetCount",
        method: "get",
    })
}

export function addRecord(data) {
    return instance.request({
        url: "/api/Record/PostAddRecord",
        method: "post",
        data
    })
}

export function updateRecord(data) {
    return instance.request({
        url: "/api/Record/PutUpdateRecord",
        method: "put",
        data
    })
}

export function deleteRecord(data) {
    return instance.request({
        url: "/api/Record/DeleteRecord",
        method: "delete",
        data
    })
}